#include <stdio.h>
#include <string.h>
#include "getopt.h"
#include "lutil.h"
#include "conffile.h"


static void
usage( char *name )
{
		fprintf( stderr,
		"usage: %s options\n", name );
		fprintf( stderr,
		"\t-4\t\tIPv4 only\n"
		"\t-6\t\tIPv6 only\n"
		"\t-T {acl|add|auth|cat|dn|index|passwd|test}\n"
		"\t\t\tRun in Tool mode\n"
		"\t-c cookie\tSync cookie of consumer\n"
		"\t-d level\tDebug level" "\n"
		"\t-f filename\tConfiguration file\n"
		"\t-F dir\tConfiguration directory\n"
		"\t-h URLs\t\tList of URLs to serve\n"
		"\t-n serverName\tService name\n"
		"\t-o <opt>[=val] generic means to specify options" );
	
}

int main(int argc, char* argv[])
{
	int i;
	while ( (i = getopt( argc, argv,
			     "4:c:d:f:F:h:n:o:s:tT:V"
     )) != EOF ) 
	{
	
		switch ( i ) {
			case '4':
			printf("444====\n");
			break;
			case 'f':
				printf("\nf===%s",strdup(optarg));
				break;
			default:
				usage(argv[0]);
		}
	}



//		radlog(L_ERR, "adfsfsdf");
//read_clients_file("a:\\a.txt");
		//lutil_localtime( tmbuf, sizeof( tmbuf ), tm, -timezone );
	read_radius_conf_file();

	return 0;
}